<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">


    <h:head>
        <title>Clinic Plus</title>

        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />

        <link rel="stylesheet" type="text/css" href="assets/styles/grid.css"  />
        <link rel="stylesheet" type="text/css" href="assets/styles/style.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="assets/styles/orbit-1.2.3.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="assets/styles/jquery.fancybox-1.3.4.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="assets/styles/font-awesome/css/font-awesome.min.css"/>



        <script type="text/javascript">
	
            function handleMessage(msg) {
                
                msg.severity = 'info';
                grow.show([msg]);
	
            }
        </script>

        <script type="text/javascript">
            PrimeFaces.locales['pt'] = {  
                closeText: 'Fechar',  
                prevText: 'Anterior',  
                nextText: 'Próximo',  
                currentText: 'Começo',  
                monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],  
                monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', 'Jul','Ago','Set','Out','Nov','Dez'],  
                dayNames: ['Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado'],  
                dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],  
                dayNamesMin: ['D','S','T','Q','Q','S','S'],  
                weekHeader: 'Semana',  
                firstDay: 1,  
                isRTL: false,  
                showMonthAfterYear: false,  
                yearSuffix: '',  
                timeOnlyTitle: 'Só Horas',  
                timeText: 'Tempo',  
                hourText: 'Hora',  
                minuteText: 'Minuto',  
                secondText: 'Segundo',  
                currentText: 'Data Atual',  
                ampm: true,  
                month: 'Mês',  
                week: 'Semana',  
                day: 'Dia',  
                allDayText : 'Todo Dia'  
            };  
        </script>

        <script type="text/javascript">
	
            function handleMessage(msg) {
                alert('TESTE');
	
            }
        </script>
    </h:head>
    <h:body>


        <div class="logo clearfix " style="width: 100%;
             color:#fff;
             z-index:100;position:fixed;top:0;
             box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
             height: 63px; padding-top: 20px;
             background-color: #0288d1">

            <!--        <div class="logo clearfix " style="width: 100%;
                         z-index:100;position:fixed;top:0;
                         box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
                         height: 63px; padding-top: 20px;
                         background: linear-gradient(to bottom, #FFFFFF 0%, #F6F6F6 100%) repeat scroll 0 0 transparent">-->

            <div class="container-menu  container_24 clearfix" style="">
                <div style="display: inline" class="grid_6">
                    <a href="/"><img src="assets/images/logo1.png" 
                                     alt="Clinicplus" width="230"   />
                    </a>
                </div>
                <div style="display: inline" class="grid_12">
                    <nav>
                        <ul>
                            <li><a id="inicio" href="index.xhtml"  >Início</a></li>
                            <li><a id="atendimento" href="indexagenda.xhtml">Atendimento</a></li>
                            <li><a id="paciente" href="indexcustomer.xhtml">Pacientes</a></li>
                            <li><a id="prontuario" href="searchRecords.xhtml">Prontuário</a></li>
                            <!--                            <li><a href="config.xhtml">Configurações</a></li>-->
                            <li><a id="admin" href="admin.xhtml">Administração</a></li>
                        </ul>
                    </nav>
                </div>
                <div class="grid_5" style="padding-top: 2px;">

                    <div class="grid_10">
                    </div>
                    <div class="grid_2" style="text-align: right; margin-top: 8px">
                        <!--                        <i class="fa fa-user fa-2x"></i>-->
                    </div>
                    <div class="user grid_9"  style="text-align: right; ">
                        <p:commandLink styleClass="link" title="Usuário: #{request.getUserPrincipal().getName()}" actionListener="#{managerLayout.showUser()}" >
                            <span>
                                #{request.getUserPrincipal().getName()}
                            </span>
                        </p:commandLink>
                    </div>
                    <div class="grid_2" style="text-align: right; margin-top: 8px">
                        <p:commandLink styleClass="linkoff" title="Sair" actionListener="#{managerLayout.logout()}"  >
                            <i class="fa fa-power-off fa-2x"></i>
                        </p:commandLink>
                    </div>
                    <p:commandLink actionListener="#{managerLayout.logout()}" />

                    <h:form rendered="false" acceptcharset="utf-8"> 

                        <p:splitButton value="#{request.getUserPrincipal().getName()}" 
                                       actionListener="#{managerLayout.showUser()}" update="@this" icon="ui-icon-person">  
                            <p:separator />  
                            <p:menuitem value="Sair" actionListener="#{managerLayout.logout}" update="@all"
                                        immediate="false" ajax="false"/>  
                        </p:splitButton>
                    </h:form>
                </div>
            </div>
        </div>
        <div class="wrapper">
            <header>
                <br/>
            </header>
            <div class="nav-container">

            </div>
            <section id="home">
                <h:form prependId="false">
                </h:form>
                <ui:insert name="body">

                </ui:insert>
                <hr/>
            </section>
            <section id="about"></section>
            <footer>
                <p class="left">Copyright © 2013-2015 - Todos os Direitos  Reservados<br/>
                    <a href="http://www.foxinline.com">Fox in Line Technologies</a></p>
            </footer>
        </div>

        <div class="frase"></div>
        
        <script  type="text/javascript" src="assets/scripts/autoNumeric.js"></script>
        <script type="text/javascript" src="assets/scripts/goTop.js"></script>
        <script  type="text/javascript" src="assets/scripts/html2canvas.js"/>

    </h:body>
</html>
